﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using ZoneFiveSoftware.Common.Data.Fitness;

namespace HermesPlugin.Export
{
    public class ExtendEdit : IExtendActivityEditActions
    {
        public IList<IAction> GetActions(IList<IActivity> activities)
        {
            return new IAction[] 
            {
                new ExtendEditActivity(activities)
            };
        }

        public IList<IAction> GetActions(IActivity activity)
        {
            if (activity == null || activity.GPSRoute == null || activity.GPSRoute.Count == 0) 
                return null;
            return new IAction[] 
            {                
                new ExtendEditActivity ( new IActivity[]{ activity } )
            };
        }
    }
}